/**
 * Created by jbz on 2017/4/17.
 */
import GlobalConstant from '../util/GlobalConstant';
export default class Network {
  static createNetwork() {
    let baseUrl = GlobalConstant.baseUrl;
    let timeout = GlobalConstant.timeout;
    let host = window.location.host;
    console.log(baseUrl)
    console.log(timeout)
    console.log(host)
  }

  static globalParas = () => {
    return {
      account: GlobalConstant.store.state.accountModule.account,
      cityId: GlobalConstant.store.state.locationModule.userLocationCity.id,
      coordinateParas: GlobalConstant.store.state.locationModule.location,
      locationInfo: {
        cityId: GlobalConstant.store.state.locationModule.userLocationCity.id,
        longitude: GlobalConstant.store.state.locationModule.longitude,
        latitude: GlobalConstant.store.state.locationModule.latitude
      }
    };
  }
}

